package com.example.easypoi.demo2.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 课程导出类 * author：悟纤「公众号SpringBoot」 * date：2023/5/8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseExportVO {
    /**
     * 课程名称
     */
    @Excel(name = "课程名称", width = 25, needMerge = true)
    private String name;
    @ExcelEntity
    private TeacherExportVO teachers;
    @ExcelCollection(name = "学生")
    private List<StudentExportVO> students;
}